package cn.stu.projectsummit.comment.mapper;

import cn.stu.projectsummit.comment.pojo.entity.Comment;
import cn.stu.projectsummit.comment.pojo.vo.CommentListVO;
import cn.stu.projectsummit.comment.pojo.vo.CommentVO;
import org.springframework.stereotype.Repository;
import cn.stu.projectsummit.comment.pojo.dto.CommentQuery;

import java.util.List;

@Repository
public interface CommentMapper {
    Integer selectCommentCount(Long userId);

    List<CommentVO> selectComment(CommentQuery commentQuery);
    void delete(Long commentId);

    List<CommentListVO> selectByBlogId(Long blogId);

    void insert(Comment comment);
}
